package net.kesumu.yushabuserver.entity;

import java.sql.Timestamp;
import java.util.ArrayList;
import java.util.Date;

public class YushabuSession {
    public static final int TYPE_NORMAL = 0;

    private int sessionId;
    private int type;
    private Timestamp createdTime;
    private String name;
    private int createUserId;
    
    
    private int friendId;
    private String friendName;
    
    
    private ArrayList<User> sessionMembers;
    

    public YushabuSession() {
        
    }
    public YushabuSession(int fid, String fna) {
        sessionId = 0;
        friendId = fid;
        friendName = fna;
    }
    public YushabuSession(int type, String name, int createUserId, ArrayList<User> sessionMembers) {
        this.type = type;
        java.util.Date date = new Date();
        this.createdTime = new java.sql.Timestamp(date.getTime());
        this.name = name;
        this.createUserId = createUserId;
        this.sessionMembers = sessionMembers;
    }
    
    public int getSessionId() {
        return sessionId;
    }
    public void setSessionId(int sessionId) {
        this.sessionId = sessionId;
    }
    public int getType() {
        return type;
    }
    public void setType(int type) {
        this.type = type;
    }
    public Timestamp getCreatedTime() {
        return createdTime;
    }
    public void setCreatedTime(Timestamp createdTime) {
        this.createdTime = createdTime;
    }
    public String getName() {
        return name;
    }
    public void setName(String name) {
        this.name = name;
    }
    public int getFriendId() {
        return friendId;
    }
    public void setFriendId(int friendId) {
        this.friendId = friendId;
    }
    public String getFriendName() {
        return friendName;
    }
    public void setFriendName(String friendName) {
        this.friendName = friendName;
    }
    public ArrayList<User> getSessionMembers() {
        return sessionMembers;
    }
    public void setSessionMembers(ArrayList<User> sessionMembers) {
        this.sessionMembers = sessionMembers;
    }
    public int getCreateUserId() {
        return createUserId;
    }
    public void setCreateUserId(int createUserId) {
        this.createUserId = createUserId;
    }
    
}
